package resultx

// 成功返回
const OK uint32 = 200

/**(前3位代表业务,后三位代表具体功能)**/

// 全局错误码
const SERVER_COMMON_ERROR uint32 = 100001 // #24.02.18#
const REUQEST_PARAM_ERROR uint32 = 100002 // ##25.02.15##
const TOKEN_EXPIRE_ERROR uint32 = 100003 // ##25.02.14##
const TOKEN_GENERATE_ERROR uint32 = 100004
const DB_ERROR uint32 = 100005 // ##25.03.25##
const DB_UPDATE_AFFECTED_ZERO_ERROR uint32 = 100006
const DTM_ERROR uint32 = 100007
const UPLOAD_ERROR uint32 = 100008
const UPLOAD_WRONG_TYPE_ERROR uint32 = 100009
const UPLOAD_OVER_SIZE_ERROR uint32 = 100010

// 用户模块
const USER_AUTH_PARAM_INVALID uint32 = 101001 // ##25.03.10##
const USER_STATUS_INVALID uint32 = 101002
const USER_EXISTS uint32 = 101003          // #24.03.29#
const USER_REGISTER_FAILED uint32 = 101004 // #24.03.30#
const USER_LOGIN_FAILED uint32 = 101005
const USER_GET_INFO_FAILED uint32 = 101006 // ##25.03.10##
const USER_ID_REQUIRED uint32 = 101009     // ##25.04.16##
const USER_ID_INVALID uint32 = 101010      // ##25.04.16##
const USER_LOGIN_WXMINI_FAILED uint32 = 101011 // #24.09.14#
const USER_AUTH_WXMINI_FAILED uint32 = 101012
const USER_AUTH_MODIFY_FAILED uint32 = 101013 // ##25.03.10##
const USER_ASSET_INVALID uint32 = 101021 // ##25.04.16##
const USER_ADDRESS_CONSIGNEE_REQUIRED uint32 = 101101
const USER_ADDRESS_GEOGRAPHIC_REQUIRED uint32 = 101102
const USER_ADDRESS_GEOGRAPHIC_INVALID uint32 = 101103
const USER_ADDRESS_ADDRESS_REQUIRED uint32 = 101104
const USER_ADDRESS_ID_REQUIRED uint32 = 101105 // ##25.05.17##
const USER_ADDRESS_ID_INVALID uint32 = 101106

const USER_FOLLOW_USER_ID_REQUIRED uint32 = 101201
const USER_FOLLOW_FRIEND_ID_REQUIRED uint32 = 101202
const USER_FOLLOW_FOLLOW_CHANNEL_REQUIRED uint32 = 101203
const USER_FOLLOW_STATUS_REQUIRED uint32 = 101204

const USER_POINT_INVALID uint32 = 101301 // #24.08.27#
const USER_POINT_FAIL uint32 = 101302

// 文章模块
const ENTRY_PERFUME_ID_REQUIRED uint32 = 102001 // ##25.03.12##
const ENTRY_NO_SEARCH_TERM_SPECIFIED uint32 = 102002
const ENTRY_NO_ITEMS_FOUND uint32 = 102003
const ENTRY_PROPOSAL_CONTENT_REQUIRED uint32 = 102011
const ENTRY_ID_REQUIRED uint32 = 102021

// 社区模块
const FORUM_POST_CONTENT_REQUIRED uint32 = 103001  // ##25.02.14##
const FORUM_POST_AUTHOR_ID_INVALID uint32 = 103002 // ##25.02.14##
const FORUM_POST_ID_REQUIRED uint32 = 103003 // ##25.03.31##
const FORUM_POST_ID_INVALID uint32 = 103004
const FORUM_POST_STATUS_INVALID uint32 = 103005 // ##25.04.01##
const FORUM_POST_PARENT_ID_REQUIRED uint32 = 103006 // ##25.02.14##
const FORUM_POST_PHOTO_REQUIRED uint32 = 103007
const FORUM_POST_TITLE_REQUIRED uint32 = 103008
const FORUM_POST_CONTENT_INVALID uint32 = 103009 // ##25.02.14##

const FORUM_TOPIC_TITLE_REQUIRED uint32 = 103011 // ##25.02.21##
const FORUM_TOPIC_CONTENT_REQUIRED uint32 = 103012 // ##25.02.21##
const FORUM_TOPIC_AUTHOR_ID_INVALID uint32 = 103013 // ##25.02.21##
const FORUM_TOPIC_ID_REQUIRED uint32 = 103014 // ##25.02.25##
const FORUM_TOPIC_ID_INVALID uint32 = 103015
const FORUM_TOPIC_STATUS_INVALID uint32 = 103016
const FORUM_TOPIC_CONTENT_INVALID uint32 = 103017  // ##25.02.21##

const FORUM_DEEPSEEK_AI_TITLE_REQUIRED uint32 = 103021 // deprecated
const FORUM_DEEPSEEK_AI_CONTENT_REQUIRED uint32 = 103022 // deprecated
const FORUM_DEEPSEEK_AI_CONTENT_STATUS_REQUIRED uint32 = 103023 // deprecated

const FORUM_REACTION_CONTENT_ID_INVALID uint32 = 103101 // ##25.01.02##
const FORUM_REACTION_USER_ID_INVALID uint32 = 103102    // ##25.01.02##
const FORUM_REACTION_TYPE_INVALID uint32 = 103103       // ##25.03.12##

const FORUM_USER_NICKNAME_REQUIRED uint32 = 103201 // #24.10.29#

const FORUM_COMMENT_CONTENT_REQUIRED uint32 = 103301 // #24.10.29#
const FORUM_COMMENT_ID_REQUIRED uint32 = 103302      // #24.10.29#
const FORUM_COMMENT_USER_ID_REQUIRED uint32 = 103303 // #24.10.29#

const FORUM_PERFUME_CABINET_USER_ID_REQUIRED uint32 = 103401     // #24.10.29#
const FORUM_PERFUME_CABINET_OBJECT_ID_REQUIRED uint32 = 103402   // #24.10.29#
const FORUM_PERFUME_CABINET_OBJECT_TYPE_REQUIRED uint32 = 103403 // ##25.05.20##
const FORUM_PERFUME_CABINET_ID_REQUIRED uint32 = 103404          // #24.10.29#

// 产品模块
const PRODUCT_VARIATION_ID_REQUIRED uint32 = 104011 // #24.08.27#
const PRODUCT_NO_VALID_VARIATION_ID uint32 = 104012
const PRODUCT_VARIATION_STOCK_VALIDATE_FAIL uint32 = 104013 // ##25.05.12##
const PRODUCT_VARIATION_STOCK_INVALID uint32 = 104014       // ##25.05.12##

const ADD_CART_ITEM_FAILED uint32 = 104015
const UPDATE_CART_ITEM_FAILED uint32 = 104016 // ##24.10.26##

const PRODUCT_PACKAGE_ID_REQUIRED uint32 = 104021
const PRODUCT_PACKAGE_ID_INVALID uint32 = 104022
const PRODUCT_ID_REQUIRED uint32 = 104023 // #24.07.22#
const PRODUCT_ID_INVALID uint32 = 104024  // #24.07.22#

// 订单模块
const ORDER_SN_REQUIRED uint32 = 105001
const ORDER_SN_EXISTS uint32 = 105002
const ORDER_PARAM_INVALID uint32 = 105009 // #24.10.06#
const ORDER_ID_REQUIRED uint32 = 105010 // ##25.05.06##
const ORDER_ID_INVALID uint32 = 105011 // ##25.05.06##
const ORDER_PAYMENT_ID_REQUIRED uint32 = 105012
const ORDER_PAYMENT_ID_INVALID uint32 = 105013 // ##25.05.17##
const ORDER_REFUND_ID_INVALID uint32 = 105014 // #24.10.15#
const ORDER_SHIPMENT_ID_REQUIRED uint32 = 105015
const ORDER_SHIPMENT_ID_INVALID uint32 = 105016 // ##25.05.17##
const ORDER_NOT_FOUND uint32 = 105017
const ORDER_TRADE_STATE_INVALID uint32 = 105018 // ##25.05.06##
const ORDER_CREATE_FAILED uint32 = 105021
const ORDER_UPDATE_TRADE_STATE_FAILED uint32 = 105022
const ORDER_UPDATE_CART_FAILED uint32 = 105031 // #24.08.27#

const AFTER_SALE_PARAM_INVALID uint32 = 105041 // ##25.05.07##
const AFTER_SALE_ID_REQUIRED uint32 = 105042 // ##25.05.07##
const AFTER_SALE_ID_INVALID uint32 = 105043 // ##25.05.07##

const ACTIVITY_NOT_STARTED uint32 = 105501 // ##25.05.13##
const ACTIVITY_ENDED uint32 = 105502 // ##25.05.13##
const ACTIVITY_MEMBER_RESTRICTED uint32 = 105503 // ##25.05.13##
const ACTIVITY_ID_REQUIRED uint32 = 105504
const ACTIVITY_ID_INVALID uint32 = 105505

const PROMOTION_STATUS_INVALID uint32 = 105600

const COUPON_NOT_STARTED uint32 = 105601
const COUPON_ENDED uint32 = 105602
const COUPON_MEMBER_RESTRICTED uint32 = 105603
const COUPON_ID_REQUIRED uint32 = 105604 // ##25.04.14##
const COUPON_ID_INVALID uint32 = 105605
const COUPON_OVERSIZE_ERROR uint32 = 105606

// 支付模块
const PAYMENT_WECHAT_PAY_INIT_FAIL uint32 = 106001
const PAYMENT_WECHAT_PAY_INIT_CLIENT_FAIL uint32 = 106002
const PAYMENT_WECHAT_PAY_INIT_PRE_ORDER_FAIL uint32 = 106003
const PAYMENT_WECHAT_PAY_CALLBACK_FAIL uint32 = 106004
const PAYMENT_WECHAT_REFUND_FAIL uint32 = 106005
const PAYMENT_WECHAT_REFUND_CALLBACK_FAIL uint32 = 106006
const PAYMENT_AUTO_CLOSE_ORDER_PARAM_INVALID uint32 = 106011
const PAYMENT_AUTO_CLOSE_ORDER_FAILED uint32 = 106012
const PAYMENT_NOTIFY_USER_PARAM_INVALID uint32 = 106013
const PAYMENT_NOTIFY_USER_FAILED uint32 = 106014

const LOCAL_CACHE_INIT_FAIL uint32 = 107001
const ELASTIC_INIT_CLIENT_FAIL uint32 = 107002
const ELASTIC_INIT_FAIL uint32 = 107003
const ELASTIC_DOCUMENT_FAIL uint32 = 107004

// 积分模块
const INTEGRAL_TASK_FINISHES_NUMBER_EXCEED uint32 = 108001
const INTEGRAL_TASK_TASK_ID_REQUIRED uint32 = 108002
const INTEGRAL_TASK_INTEGRALS_REQUIRED uint32 = 108003
const INTEGRAL_TASK_INTEGRALS_INVALID uint32 = 108004
const INTEGRAL_TASK_NAME_REQUIRED uint32 = 108005
